import axios from "axios";

export default {
  /**
   * 获取当前账户信息
   */
  fileUpload(params) {
    return axios.post("/security/fileUpload", params);
  },
  uploadFileWithBiz(params) {
    return axios.post("/security/uploadFileWithBiz", params);
  },
  deleteAttachByBizIdAndType(params) {
    return axios.post("/security/deleteAttachByBizIdAndType", params, {
      headers: {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    });
  },
  deleteAttachmentById(params) {
    return axios.post("/security/deleteAttachmentById", params, {
      headers: {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    });
  },
  getAttachments(params) {
    return axios.get("/security/getAttachments", { params: params });
  },
  exportPdf(params) {
    return axios.post("/security/equity/exportPdf", params);
  }
};
